import request from '@/utils/request'

// 查询宿舍信息列表
export function findSchoolDormitoryPageList(data) {
  return request({
    url: '/dormitory/findSchoolDormitoryPageList',
    method: 'post',
    data
  })
}

// 新增or修改宿舍信息
export function addOrUpdateDormitory(data) {
  return request({
    url: '/dormitory/addOrUpdateDormitory',
    method: 'post',
    data
  })
}

// 删除宿舍信息
export function deleteDormitoryById(data) {
  return request({
    url: '/dormitory/deleteDormitoryById',
    method: 'post',
    data
  })
}

// 导出宿舍信息
export function exportBDormitory(query) {
  return request({
    url: '/basedata/bdormitory/export',
    method: 'get',
    params: query
  })
}

// 获取字典选择框列表
export function optionselect() {
  return request({
    url: '/basedata/dict/optionselect',
    method: 'get'
  })
}

